import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import zhCN from 'antd/es/locale/zh_CN';
import store from '@/Redux/store';
import Login from '@/Components/Login'
import { Router, Route, Switch } from 'react-router-dom'
import { createBrowserHistory } from 'history';
import { ConfigProvider } from 'antd';
import HomePage from './HomePage'
import './index.css'
export const history = createBrowserHistory();


ReactDOM.render(
  <ConfigProvider locale={zhCN}>
    <Provider store={store}>
      <Router history={history}>
        <Switch>
          <Route exact path='/' key='/Login' component={Login} />
          <Route path='/homePage' key='/homepage' component={HomePage} />
          {/* <Route key='404' component={NotFind} /> */}
        </Switch>
      </Router>
    </Provider>
  </ConfigProvider>,
  document.getElementById('root')
)